package com.mmc.client;

import com.mmc.client.factory.contentClientFactory;
import com.mmc.entity.Content;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

/**
 * 作者：李嘉浩
 * 时间：2024-09-16-16:52
 * 功能：
 */

@FeignClient(value = "mmc-core",fallbackFactory = contentClientFactory.class)
public interface ContentClient {
    @GetMapping("/admin/core/content/findById/{l}")
    List<Content> findByCategoryId(@PathVariable long l);
}
